﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IOA.MES.DataAccess.VModel
{
    /// <summary>
    /// 发料产品
    /// </summary>
    public class VDispatchOrderProduct : BaseVModel
    {
        private string _dispatchNo = string.Empty;
        private string _productCode = string.Empty;
        private string _productName = string.Empty;
        private string _batchNo = string.Empty;
        private string _productSpecs = string.Empty;
        private string _color = string.Empty;
        private string _factory = string.Empty;

        #region Public Property

        ///<Summary>
        /// 发料单号
        ///</Summary>
        public string DispatchNo
        {
            get { return string.IsNullOrWhiteSpace(_dispatchNo) ? string.Empty : _dispatchNo; }
            set { _dispatchNo = value; }
        }

        ///<Summary>
        /// 物料代码
        ///</Summary>
        public string ProductCode
        {
            get { return string.IsNullOrWhiteSpace(_productCode) ? string.Empty : _productCode; }
            set { _productCode = value; }
        }

        ///<Summary>
        /// 物料名称
        ///</Summary>
        public string ProductName
        {
            get { return string.IsNullOrWhiteSpace(_productName) ? string.Empty : _productName; }
            set { _productName = value; }
        }

        ///<Summary>
        /// 物料规格
        ///</Summary>
        public string ProductSpecs
        {
            get { return string.IsNullOrWhiteSpace(_productSpecs) ? string.Empty : _productSpecs; }
            set { _productSpecs = value; }
        }

        ///<Summary>
        /// 工厂
        ///</Summary>
        public string Factory
        {
            get { return string.IsNullOrWhiteSpace(_factory) ? string.Empty : _factory; }
            set { _factory = value; }
        }

        ///<Summary>
        /// 电池片颜色
        ///</Summary>
        public string Color
        {
            get { return string.IsNullOrWhiteSpace(_color) ? string.Empty : _color; }
            set { _color = value; }
        }

        ///<Summary>
        /// 批次号
        ///</Summary>
        public string BatchNo
        {
            get { return string.IsNullOrWhiteSpace(_batchNo) ? string.Empty : _batchNo; }
            set { _batchNo = value; }
        }

        ///<Summary>
        /// 发料数量
        ///</Summary>
        public decimal Quality { get; set; }
        #endregion
    }
}
